// 员工抽象基类
public abstract class Employee {
    protected String name;
    protected String gender;
    protected String birthDate;

    // 构造方法
    public Employee(String name, String gender, String birthDate) {
        this.name = name;
        this.gender = gender;
        this.birthDate = birthDate;
    }

    // 获取员工类型的抽象方法
    public abstract String getType();

    // 计算工资的抽象方法
    public abstract void computeSalary();
}
    